package com.fqgj.xjd.user.client.request;


import java.io.Serializable;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2017/2/26
 * Time: 下午4:23
 */
public class UserAccess implements Serializable {

    private static final long serialVersionUID = -1994560017245174583L;

    private String packageName;

    private Mobile mobile;

    private Password password;

    private String userCode;

    private UserAppInfo userAppInfo;

    private UserDevice userDevice;

    /**
     * user登录的app支持的产品列表
     */
    private List<UserProductCategory> userProductCategoryList;


    public UserAccess() {
    }

    public String getPackageName() {
        return packageName;
    }

    public UserAccess setPackageName(String packageName) {
        this.packageName = packageName;
        return this;
    }

    public UserAccess(String mobile) {
        this.mobile = new Mobile(mobile);
    }

    public UserAccess(String mobile, String password) {
        this.mobile = new Mobile(mobile);
        this.password = new Password(password);
    }

    public UserAccess(String mobile, String password, UserAppInfo userAppInfo) {
        this.mobile = new Mobile(mobile);
        this.password = new Password(password);
        this.userAppInfo = userAppInfo;
    }

    public Mobile getMobile() {
        return mobile;
    }

    public UserAccess setMobile(Mobile mobile) {
        this.mobile = mobile;
        return this;
    }

    public Password getPassword() {
        return password;
    }

    public UserAccess setPassword(Password password) {
        this.password = password;
        return this;
    }


    public UserAppInfo getUserAppInfo() {
        return userAppInfo;
    }

    public UserAccess setUserAppInfo(UserAppInfo userAppInfo) {
        this.userAppInfo = userAppInfo;
        return this;
    }


    public String getUserCode() {
        return userCode;
    }

    public UserAccess setUserCode(String userCode) {
        this.userCode = userCode;
        return this;
    }

    public UserDevice getUserDevice() {
        return userDevice;
    }

    public UserAccess setUserDevice(UserDevice userDevice) {
        this.userDevice = userDevice;
        return this;
    }

    public List<UserProductCategory> getUserProductCategoryList() {
        return userProductCategoryList;
    }

    public UserAccess setUserProductCategoryList(List<UserProductCategory> userProductCategoryList) {
        this.userProductCategoryList = userProductCategoryList;
        return this;
    }
}
